package lesson.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lesson.entity.NocvNews;
import lesson.mapper.NocvNewsMapper;
import lesson.service.NocvNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Author: Wanzhen
 * @Date: 2022/6/13-18:47
 */
@Service
public class NocvNewsServiceImpl extends ServiceImpl<NocvNewsMapper, NocvNews> implements NocvNewsService {

    @Autowired
    private NocvNewsMapper nocvNewsMapper;

    @Override
    public List<NocvNews> listNewsLimit5() {
        return nocvNewsMapper.listNewsLimit5();
    }

}
